<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>addProducts</title>
    <link rel="StyleSheet" href="/css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>

<div id="Content">


    <div id="BackLink">
        <a href="/admin/main">Return to Main</a>
    </div>

    <div id="Catalog">
        <form id="newProduct-form" action="/admin/AddProduct">
        <table>
            <tr>
                <td>Category:</td>
                <td th:text="${categoryId}">
                   categoryId
                </td>
                <input id= "category"type="hidden" name="categoryId" th:value="${categoryId}"/>
            </tr>
            <tr>
                <td>ProductId:</td>
                <td>
                    <input id= "productid" type="text" name="productId" />
                </td>
            </tr>
            <tr>
                <td>Name:</td>
                <td>
                    <input id= "name"type="text" name="name"/>
                </td>
            </tr>
            <tr>
                <td>Description:</td>
                <td>
                    <input id= "description"type="text" name="description"/>
                </td>
            </tr>
            <tr>
                <td>Img:</td>
                <td>
                    <input id= "img" type="text" name="img"/>
                </td>
            </tr>
        </table>
            <input id="newProduct" type="submit" value="Add" name="newProduct"/>
        </form>

    </div>

</div>
</body>
</html>